<?php
set_time_limit(0);
if (isset($_GET['id']) && '1' == $_GET['id']){
    include 'load.php';
    $mysqli = new mysqli($dbhost, $dbuser, $dbpwd, $dbName);
    if (!$mysqli->set_charset("utf8")) {}
    $shareInfoData=array();
    $query=$mysqli->query("SELECT openid FROM `uinfo` WHERE `queren` IS NOT NULL ");
    while ($list=$query->fetch_assoc()){
        $queryOrder=$mysqli->query("SELECT id FROM `orders` where openid='".$list['openid']."' limit 0,1 ");
        if($queryOrder->num_rows>0){}else{
            echo $list['openid'];
            echo "<br />";
        }
    }    
}
echo 'ok';
   